import { TableColumnObject } from 'amis/lib/renderers/Table'
import baseEnumColumnUtils, { BaseEnumColumnUtilsProp } from '@/components/amis/common/BaseEnumColumnUtils/baseEnumColumnUtils'
import SmsSupplierTypeEnum from '@/core/sms/enums/SmsSupplierTypeEnum'

class SmsSupplierTypeColumnUtils {
	getSchema = (parmas?: Partial<TableColumnObject>): TableColumnObject => {
		const mergeSchema = Object.assign(
			{
				name: 'type',
				label: '供应商',
				baseEnumValues: [SmsSupplierTypeEnum.ALIYUN, SmsSupplierTypeEnum.TEST],
			} as Partial<BaseEnumColumnUtilsProp>,
			parmas,
		) as BaseEnumColumnUtilsProp
		return baseEnumColumnUtils.getSchema(mergeSchema)
	}
}

export default new SmsSupplierTypeColumnUtils()
